<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:71:"F:\PHPwork\w_blog\public/../application/home/view/article/detailed.html";i:1503467798;s:68:"F:\PHPwork\w_blog\public/../application/home/view/Public/header.html";i:1505110179;s:65:"F:\PHPwork\w_blog\public/../application/home/view/Public/tou.html";i:1501213796;s:67:"F:\PHPwork\w_blog\public/../application/home/view/Public/right.html";i:1499241368;s:69:"F:\PHPwork\w_blog\public/../application/home/view/Public/comment.html";i:1505282471;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="keywords" content="<?php echo $article['label_name']; ?>">
    <title><?php echo $article['title']; ?></title>
    <link href="__STATIC__/css/bootstrap.css" rel="stylesheet">
    <link href="__STATIC__/css/article.css" rel="stylesheet">
    <link href="__STATIC__/css/detailed.css" rel="stylesheet">
    <link rel="stylesheet" href="https://baijunyao.com/statics/prism/prism.min.css" />
    <script src="__STATIC__/js/lib/jquery/1.9.1/jquery.js"></script>
    <script src="__STATIC__/js/article/prism.js"></script>
    <link href="__STATIC__/js/lib/shCore/shCoreDefault.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="__STATIC__/js/lib/shCore/shCore.js"></script>
    <script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
        SyntaxHighlighter.all();
    </script>
</head>
<body style="background-color:  #f0f0f0">
<html xmlns:wb="http://open.weibo.com/wb">
    
<link href="__STATIC__/css/header.css" rel="stylesheet">
<script type="application/javascript" src="__STATIC__/js/article/header.js"></script>
<script type="application/javascript" src="__STATIC__/js/lib/layer/2.4/layer.js"></script>
<script>
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?c669a4b5b6e9fd202efb4f13f1060125";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
    //路由地址
    var loginUrl="<?php echo url("/login"); ?>";
    var registerUrl="<?php echo url("/register"); ?>";
</script>

<div style="background-color: rgb(96, 168, 156);">
    <div class="top_div clearfix">
        <div class="top_div_icon">
            <span><a href="<?php echo url('/index'); ?>">Welcome to    Even Blog</a></span>
        </div>
        <div class="top_div_column">
            <ul>
                <?php if(is_array($columnList) || $columnList instanceof \think\Collection || $columnList instanceof \think\Paginator): if( count($columnList)==0 ) : echo "" ;else: foreach($columnList as $key=>$list): ?>
                    <li class="top_li"><a href="<?php echo $list['column_url']; ?>"><?php echo $list['column_name']; ?></a></li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
        <div class="search">
            <input type="hidden" value="<?php echo url('/search'); ?>" id="search_url">
            <input placeholder="标题、标签" id="search">
            <input type="button" value="搜索" style="outline: none"  class="button">
        </div>
        <?php if($bloguser != ''): ?>
            <div  class="login">
                <a><?php echo $bloguser['nick_name']; ?></a>
                <a style="color: #ffffff;">|</a>
                <a href="<?php echo url('/loginout'); ?>">退出</a>
                <span  onclick="uploadImg()"><img src="<?php echo $bloguser['user_img']; ?>" ></span>
            </div>
            <?php else: ?>
                <div class="login">
                    <a href="javascript:login()">登录</a>
                    <a style="color: #ffffff;">|</a>
                    <a href="javascript:register()">注册</a>
                </div>
        <?php endif; ?>
    </div>
</div>
    <link rel="stylesheet" href="__STATIC__/css/wcy.css">
    <link rel="stylesheet" href="__STATIC__/css/amazeui.cropper.css">
    <link rel="stylesheet" href="__STATIC__/css/custom_up_img.css">
    <link rel="stylesheet" type="text/css" href="http://www.jq22.com/jquery/font-awesome.4.6.0.css">
    <style type="text/css">
        .up-img-cover {width: 100px;height: 100px;}
        .up-img-cover img{width: 100%;}
        .up-img-txt label{font-weight: 100;margin-top: 50px;}
    </style>
    <script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
    <script src="https://cdn.bootcss.com/amazeui/2.7.2/js/amazeui.min.js" charset="utf-8"></script>
    <script src="__STATIC__/js/article/custom_up_img.js"></script>
    <script src="__STATIC__/js/article/cropper.min.js"></script>
    <!--图片上传框-->
    <div class="am-modal am-modal-no-btn up-modal-frame" tabindex="-1" id="up-modal-frame">
        <div class="am-modal-dialog up-frame-parent up-frame-radius">
            <div class="am-modal-hd up-frame-header">
                <label>修改头像</label>
                <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
            </div>
            <div class="am-modal-bd  up-frame-body">
                <div class="am-g am-fl">
                    <div class="am-form-group am-form-file">
                        <div class="am-fl">
                            <button type="button" class="am-btn am-btn-default am-btn-sm">
                                <i class="am-icon-cloud-upload"></i> 选择要上传的文件</button>
                        </div>
                        <input type="file" class="up-img-file" name="uploadimg">
                    </div>
                </div>
                <div class="am-g am-fl">
                    <div class="up-pre-before up-frame-radius">
                        <img alt="" src="" class="up-img-show" id="up-img-show" >
                    </div>
                    <div class="up-pre-after up-frame-radius">
                    </div>
                </div>
                <div class="am-g am-fl">
                    <div class="up-control-btns">
                        <span class="am-icon-rotate-left"   id="up-btn-left"></span>
                        <span class="am-icon-rotate-right"  id="up-btn-right"></span>
    				<span class="am-icon-check up-btn-ok" url="<?php echo url('/uploadimg'); ?>"
                          parameter="{width:'100',height:'100'}">
    				</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--加载框-->
    <div class="am-modal am-modal-loading am-modal-no-btn" tabindex="-1" id="up-modal-loading">
        <div class="am-modal-dialog">
            <div class="am-modal-hd">正在上传...</div>
            <div class="am-modal-bd">
                <span class="am-icon-spinner am-icon-spin"></span>
            </div>
        </div>
    </div>

    <!--警告框-->
    <div class="am-modal am-modal-alert" tabindex="-1" id="up-modal-alert">
        <div class="am-modal-dialog">
            <div class="am-modal-hd">信息</div>
            <div class="am-modal-bd"  id="alert_content">
                成功了
            </div>
            <div class="am-modal-footer">
                <span class="am-modal-btn">确定</span>
            </div>
        </div>
    </div>

<div class="article_content clearfix">
    <div style="width: 1250px;margin:0 auto;">
        <div class="content">
            <input type="hidden" id="article_id" value="<?php echo $article['id']; ?>">
            <span class="article_left_low_span" style="background-color: #f0f0f0">当前位置-><?php echo $article['type_name']; ?>-><?php echo $article['title']; ?></span>
            <h1>
                [
                <?php if($article['is_yuan'] == 1): ?>
                原
                <?php else: ?>
                转
                <?php endif; ?>
                ]
                <?php echo $article['title']; ?>
            </h1>
            <div class="content_p">
                <span>发布时间:[<?php echo $article['add_time']; ?>]</span>
                <span>标签:<?php echo $article['label_name']; ?></span>
                <span><i class="content_yd"></i><?php echo $article['yd_number']; ?></span>
                <span><i class="content_dz"></i><?php echo $article['dz_number']; ?></span>
                <span style="position: relative;top: 9px;">
                            <wb:share-button appkey="1073556647" addition="number" ></wb:share-button>
                </span>
            </div>
            <div>
                <div style="margin-left: 10px;">
                    <?php echo $article['content']; ?>
                </div>

            </div>
            <div style="height: 75px;">
                <span style="color: red;margin-left: 35px;display: block">本人是小白，大神轻喷。如果哪里有写错的地方请及时告诉作者，QQ：517549368</span>
                <span style="color: red;margin-left: 35px;">注：本文为本人原创文章，未经本人允许不得转载。</span>
            </div>
        </div>
        <!--文章右边-->
        <div class="article_right_s">
    <div style="border: 1px solid #dddddd;border-bottom: 0px;">
        <div class="article_n"><span>热门文章</span></div>
        <div style="background-color: #ffffff;">
            <?php if(is_array($hotarticle) || $hotarticle instanceof \think\Collection || $hotarticle instanceof \think\Paginator): if( count($hotarticle)==0 ) : echo "" ;else: foreach($hotarticle as $key=>$data): ?>
            <div class="article_hot">
                <span><a class="article_hot_a" href="<?php echo url('/detailed/'.$data['id']); ?>" target="_blank"><?php echo $data['title']; ?></a></span>
            </div>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
    </div>

    <div class="qq">
        <span class="qq_span">学习交流</span>
        <div class="qq_div">
            <span style="">QQ群：337076132（欢迎加入）</span>
            <img src="__STATIC__/img/qq.jpg" style="width: 260px;">
        </div>
    </div>
</div>
        <!--最新评论-->
        <link href="__STATIC__/css/comment.css" rel="stylesheet">
<script src="__STATIC__/js/article/comment.js"></script>
<script>
    var isloginurl="<?php echo url("/islogin"); ?>";
    var comment_reply_url="<?php echo url('/reply_comment'); ?>";
</script>
<div  class="comment_div">
    <div class="comment_title">
        <span>最新评论</span>
    </div>
    <div class="comment_content">
        <input type="hidden" id="url" value="<?php echo url('/useraddcomment'); ?>">
        <div class="comment_i">
            <?php if($bloguser != ''): ?>
                    <img  src="<?php echo $bloguser['user_img']; ?>">

                <?php else: ?>
                    <img  src="__STATIC__/img/tou.gif">
            <?php endif; ?>
            <textarea id="content" placeholder="来评论点什么吧"></textarea>
            <?php if($bloguser != ''): ?>
                    <a class="comment_pl" onclick="comment_pl()">评论</a>
                <?php else: ?>
                    <span class="comment_login" onclick="login()">登录</span>
            <?php endif; ?>
        </div>
        <div class="comment_text">
            <input type="hidden" id="comment_id">
            <?php if(is_array($commentData) || $commentData instanceof \think\Collection || $commentData instanceof \think\Paginator): if( count($commentData)==0 ) : echo "" ;else: foreach($commentData as $key=>$data): ?>
                <div class="comment_a">
                    <div class="comment_img">
                        <img style="height: 45px;width: 45px;" src="<?php echo $data['user_img']; ?>">
                    </div>
                    <div class="comment_t">
                        <p class="comment_p_text"><span class="reply_span"><?php echo $data['user_name']; ?></span>：<?php echo $data['content']; ?></p>
                        <p class="comment_p_time"><?php echo $data['add_time']; ?>&nbsp;<a data-id="<?php echo $data['id']; ?>" onclick="reply(this)">回复</a></p>
                    </div>
                    <?php if(array_key_exists('data',$data)): if(is_array($data['data']) || $data['data'] instanceof \think\Collection || $data['data'] instanceof \think\Paginator): if( count($data['data'])==0 ) : echo "" ;else: foreach($data['data'] as $key=>$item): ?>
                            <div class="reply_comment">
                                <span class="reply_span_1"><?php echo $item["user_name"]; ?></span>回复：
                                <span class="reply_span_2"><?php echo $item["reply_name"]; ?></span>
                                <span><?php echo $item["content"]; ?></span>
                                <p class="reply_time" ><?php echo $item['add_time']; ?>&nbsp;<a data-id="<?php echo $data['id']; ?>" onclick="reply(this)">回复</a></p>
                            </div>
                        <?php endforeach; endif; else: echo "" ;endif; endif; ?>
                </div>
            <?php endforeach; endif; else: echo "" ;endif; ?>
            <div style="height: 100px;width: 100%;display: inline-block"></div>
        </div>
    </div>

</div>
    </div>
 </div>
<div class="article_low">
    <div class="copyright">
    Copyright ©2015-2017 It Bolg v1.0 All Rights Reserved.<a href="">Even Blog</a>
    <span style="padding:0 10px;">
    <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1261890043'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s95.cnzz.com/z_stat.php%3Fid%3D1261890043%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>
    </span>
    <span style="padding:0 10px;">QQ交流群：612466022</span>
    <a href="http://www.miitbeian.gov.cn/" rel="external nofollow" target="_blank"> 蜀ICP备15010979号-1</a>
    </div>
</div>
</body>
</html>
<script>
    $('pre').addClass('line-numbers');
</script>



